import { lazy } from '@loadable/component'
import type { RouteObject } from '../types'
import { LayoutGuard } from '../guard'
import { LazyLoad } from '@/components/LazyLoad'

// Home route
const FormApplyRoute: RouteObject = {
  path: '/formApply',
  name: 'FormApply',
  element: <LayoutGuard />,
  meta: {
    title: 'OA表单',
    icon: 'form',
    orderNo: 30
  },
  children: [
    {
      path: 'card',
      name: 'Card',
      element: LazyLoad(lazy(() => import('@/views/formApply/card'))),
      meta: {
        title: '证照申请',
        key: 'card'
      }
    }
  ]
}

export default FormApplyRoute
